//package org.springframework.service;
//
//import org.springframework.beans.BeansException;
//import org.springframework.beans.factory.BeanFactory;
//import org.springframework.beans.factory.BeanFactoryAware;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.ApplicationContextAware;
//
///**
// * @Name HelloService
// * @Description: Bean 测试类
// * @Version v1.0.0
// * @Author: lichao
// * @Date: 2024-03-14 15:41:14
// **/
//public class HelloService implements BeanFactoryAware, ApplicationContextAware {
//    private BeanFactory beanFactory;
//    private ApplicationContext applicationContext;
//
//    @Override
//    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
//        this.beanFactory = beanFactory;
//    }
//
//    @Override
//    public void setApplicationContext(ApplicationContext applicationContext) {
//        this.applicationContext = applicationContext;
//    }
//
//    public BeanFactory getBeanFactory() {
//        return beanFactory;
//    }
//
//    public ApplicationContext getApplicationContext() {
//        return applicationContext;
//    }
//
//    public String sayHello() {
//        return "hello";
//    }
//
//}
//
